package top.lgd.pojo.entity.person;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;
import top.lgd.base.LgdEntity;

import javax.validation.constraints.Size;
import java.math.BigDecimal;

/**
 * 个人账户表
 *
 * @author YYJ
 * @version 1.0
 * @since 2024/5/6 14:42
 */
@Getter
@Setter
@TableName("person_account")
public class Account extends LgdEntity {

    private static final long serialVersionUID = -739205843338636281L;

    /**
     * 账户属性（A资产 D负债）
     */
    @Size(max = 1)
    private String accountAttr;

    /**
     * 账户类型
     */
    @Size(max = 16)
    private String accountType;

    /**
     * 账户名称
     */
    @Size(max = 16)
    private String accountName;

    /**
     * 流入金额|授信金额
     */
    private BigDecimal inAmount;

    /**
     * 流出金额|可用金额
     */
    private BigDecimal outAmount;

    /**
     * 资金余额|已用金额
     */
    private BigDecimal balance;

    /**
     * 账单金额
     */
    private BigDecimal billAmount;

    /**
     * 账单标识 1-出账单 2-未账单
     */
    private Integer billFlag;

    /**
     * 账单日
     */
    @Size(max = 2)
    private String creditDay;

    /**
     * 还款日
     */
    @Size(max = 2)
    private String dueDay;

    /**
     * 宽限天数
     */
    private Integer graceDays;

    /**
     * 排序
     */
    private Integer sortNum;
}
